package com.dragon.mmochat.message;

import com.dragon.mmochat.MmochatConstant;
import com.skymobi.buffer.SkymobiBuffer;
import com.skymobi.message.SkymobiModuleMessage;

public class Mmochat_CheckSuggesterInfoRet extends SkymobiModuleMessage {
	private long skyId;
	private int ret; // 验证结果 0:成功；1:属同一玩家；2:不存在；3:超时或异常
	private int suggestRoleId; // 推荐人的roleid;

	public Mmochat_CheckSuggesterInfoRet() {
		setMsgCode(MmochatConstant.MSGCODE_MMOCHAT_S_1_25);
	}

	@Override
	protected void decodeBody(SkymobiBuffer in) {
		ret = in.getInt();
		skyId = in.getLong();
		suggestRoleId = in.getInt();
	}

	@Override
	protected void encodeBody(SkymobiBuffer out) {
		out.putInt(ret);
		out.putLong(skyId);
		out.putInt(suggestRoleId);
	}

	public int getRet() {
		return ret;
	}

	public void setRet(int ret) {
		this.ret = ret;
	}

	public long getSkyId() {
		return skyId;
	}

	public void setSkyId(long skyId) {
		this.skyId = skyId;
	}

	public int getSuggestRoleId() {
		return suggestRoleId;
	}

	public void setSuggestRoleId(int suggestRoleId) {
		this.suggestRoleId = suggestRoleId;
	}

}
